package com.example.wei.mvp.ui.activity;

import android.graphics.Color;

import com.example.wei.mvp.R;
import com.example.wei.mvp.base.BaseActivity;
import com.example.wei.mvp.component.AppComponent;
import com.example.wei.mvp.component.DaggerMainComponent;
import com.example.wei.mvp.util.SPUtils;
import com.githang.statusbar.StatusBarCompat;

import butterknife.OnClick;

public class SettingActivity extends BaseActivity {


    @Override
    public int getLayoutId() {
        return R.layout.activity_setting;
    }

    @Override
    protected void attachView() {

    }

    @Override
    protected void innitView() {
        StatusBarCompat.setStatusBarColor(this, Color.parseColor("#00000000"), true);
    }

    @Override
    protected void innitData() {

    }

    @Override
    protected void setupActivityComponent(AppComponent appComponent) {
        DaggerMainComponent.builder().appComponent(appComponent).build().inject(this);
    }

    @OnClick(R.id.exit_login)
    public void onViewClicked() {
        SPUtils.put("sessionid", "");
        finish();
    }
}
